home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 September / 09_02.iso / software / mp3ext / MP3ext33b19.exe / {app} / Actions / JSRename.mp3a < prev    next >
Encoding:
INI File  |  2002-06-02  |  399 b   |  16 lines

  1. [ActionButtonText]
  2. rename
  3. [ActionFilename]
  4. %TEMP%\\MP3extCmd.js
  5. [ActionHeaderFormat]
  6. var fso;var f;var s;
  7. [ActionFileFormat]
  8. s = "$(track2) - $(title).mp3";
  9. fso = new ActiveXObject("Scripting.FileSystemObject");
  10. //WScript.Echo("$(file2)" + s);
  11. f = fso.GetFile("$(file2)");
  12.  if ( !fso.FileExists("$(Path2)" + s))f.name = s;
  13.  else
  14.  WScript.Echo("File " + "$(Path2)" + s + " exists.");
  15.  
  16.